iT邦幫忙

2018 iT 邦幫忙鐵人賽
DAY 16
0
Software Development

30 天上手 iOS App 開發系列 第 27 篇

30 天上手 iOS App 開發 Day 29

  • 分享至 

  • xImage
  •  

當使用者在設計一款App時,總需要因為使用者切換手機不同語言,產生不同文字內容敘述。
而在這最後2天iOS App開發教學決定教大家如何因應不同語系顯示不同內容之方法。
這邊以繁體中文之樣式提供給大家。

首先新增完專案後點選自己專案例如本專案(Multilingualism)
Multilingualism → Info → PROJECT → Localizations → + → Chinese(Traditional)(zh_Hant)

https://ithelp.ithome.com.tw/upload/images/20180118/20107506j3pvx9Q29A.png
https://ithelp.ithome.com.tw/upload/images/20180118/20107506P6j6Ivx3zx.png
完成後會看到多了一種繁體中文之語系
https://ithelp.ithome.com.tw/upload/images/20180118/20107506zWTGaVMaFa.png
接下來在專案(Multilingualism)底下黃色資料夾上點選右鍵 → New File...
https://ithelp.ithome.com.tw/upload/images/20180118/20107506faMSmdJhu6.png
新增一個Strings File檔案 → 將檔名命名為 Localizable
https://ithelp.ithome.com.tw/upload/images/20180118/20107506mhX4BYVaGZ.png
https://ithelp.ithome.com.tw/upload/images/20180118/201075067nhswnY31T.png
接下來要設定 Localizable.strings 所支援的多國語系
點擊 Localizable.strings → 點擊 Localize... → 選擇繁體中文語系
https://ithelp.ithome.com.tw/upload/images/20180118/20107506nz7531P5rz.png
https://ithelp.ithome.com.tw/upload/images/20180118/20107506Bld5HWrYHk.png
https://ithelp.ithome.com.tw/upload/images/20180118/20107506CepNQ1QYd9.png
最後勾選要加入的語系(可重複勾選)
https://ithelp.ithome.com.tw/upload/images/20180118/20107506lXLjMjBTb7.png

接下來多國語系新增方法之步驟 請點選iOS App 開發 Day 30


上一篇
30 天上手 iOS App 開發 DAY 27
下一篇
30 天上手 iOS App 開發 Day 30
系列文
30 天上手 iOS App 開發 共 28 篇
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言